#!/usr/bin/python

import subprocess
f_passwd = subprocess.getoutput("cat /etc/passwd")
f_line = f_passwd.splitlines()
for i in f_line:
    if 500 < int(i.split(":")[2]) < 1000:
        print("username is %s uid is %s"%(i.split(":")[0],i.split(":")[2]))
